/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cescorp.aplicacion.service.impl;

import com.cescorp.aplicacion.dao.PeliculaDao;
import com.cescorp.aplicacion.entidades.Pelicula;
import com.cescorp.aplicacion.service.PeliculaService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author C588
 */
@Service
public class PeliculaServiceImpl implements PeliculaService {

    @Autowired
    private PeliculaDao peliculaDao;

    @Override
    public void add(Pelicula pelicula) {
        peliculaDao.add(pelicula);
    }

    @Override
    public void update(Pelicula pelicula) {
        peliculaDao.update(pelicula);
    }

    @Override
    public void delete(int id) {
        peliculaDao.delete(id);
    }

    @Override
    public List getAll() {
        return peliculaDao.getAll();
    }

    @Override
    public Pelicula get(int id) {
        return peliculaDao.get(id);
    }

}
